package routers

import (
	"pfl/controllers/ueditor"

	"github.com/astaxie/beego"
)

func Ueditor() {
	beego.Router("/ueditor/demo", &ueditor.DemoController{})
	beego.Router("/ueditor/control", &ueditor.UeditorController{}, "*:ControllerUE")
	// beego.Router("/category", &ueditor.CategoryController{}) //相当于get
	//beego.Router("/category/add", &ueditor.CategoryController{}, "get:Add")
	// beego.AutoRouter(&ueditor.CategoryController{}) //这句代替上句也行
	beego.Router("/attachment/*", &ueditor.AttachController{})
}
